import { request } from '@umijs/max';

export const userLogin = async (userLoginDto: UserLoginDTO)=>{
  return request('/api/user/login',{
    method: 'POST',
    data: userLoginDto,
  });
}

export const userRegistry = async (userRegistryDto: UserRegisterDTO)=>{
  return request('/api/user/registry',{
    method: 'POST',
    data: userRegistryDto,
  });
}
